 <?xml version="1.0" encoding="ISO-8859-1" ?>

<%@page import="test.*"%>

<%@page import="java.sql.*"%>

<%@page import="java.util.*"%>
<%@page import = "java.util.Date" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel = "stylesheet" type = "text/css" href = "main.css"></link>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Register For Conference</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="ValidateForm.js"></script>
<style type="text/css">@import "jquery.datepick.css";</style>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery.datepick.js"></script>
<script type="text/javascript"> 

$(function() {

	$('#popupDatepicker2').datepick();
});
</script>
</head>
<body>

<div id = "header">
 <div style="float:left">
 <img height="75px" width="165px" alt="IMAGE" src="./Img/banner1.jpg"/>
 <img height="75px" width="165px" alt="IMAGE" src="./Img/banner2.jpg"/>
 <img height="75px" width="165px" alt="IMAGE" src="./Img/banner3.jpg"/>
 <img height="75px" width="160px" alt="IMAGE" src="./Img/banner5.jpg"/>
  <img height="75px" width="160px" alt="IMAGE" src="./Img/banner4.jpg"/>
   <img height="75px" width="162px" alt="IMAGE" src="./Img/banner7.jpg"/> 
 </div>
 
 </div> 
 <div id = "main" > 
 <div id = "main-left"> 
 <div id = "links">
 <a id = "link1" href ="Home.jsp"> Home </a>
 <br/>
 <br/>
 <a id = "link2" href = "viewConferences.jsp"> View Conference</a>
  <br/>
 <br/>
 <a id = "link3" href = "RegisterConference.jsp"> Register for Conference</a>
  <br/>
 <br/>
 <a id = "link4" href = "ListOfAttendees.jsp"> List of Attendees</a>
  <br/>
 <br/>
 <a id = "link5" href = "PresentWorkshop.jsp">Submit Proposal</a>
  <br/>
 <br/>
 <a id = "link6" href = "Admin.jsp">Administrator</a>
 </div>
 </div>
 <div id = "main-right">
  <h1 id = "title" ><em>Tutor/Mentor Leadership And Networking Conference</em> </h1>
  <p id = "instruction1">Please fill in the below form to register for a conference.</p>
  <div class = "myProfile">
  <form action="ParticipantSave.jsp" id = "participantInfo" method="post">
  <table cellpadding="8" cellspacing="8">
  <tr>
  <td>
   FirstName:
  <label style="color: black">*</label>
  </td>
  <td >
  <input type ="text" id = "txtFName" name = "FName" />
  </td>
  <td>
   LastName:
  <label style="color: black">*</label>
  </td>
  <td > 
  <input type ="text" id = "txtLName" name = "LName" />
 </td>
  </tr>
<tr>
  <td>
  Title:
  </td>
  <td>
  <input type ="text" id = "txtTitle" name = "Title" />
  </td>
  <td >
  Organization:
  <label style="color: black">*</label>
  </td>
  <td>
  <input type ="text" id = "txtOrganization"   name = "Organization"/>
  </td>
  </tr>
  <tr>
  <td>
   Address:
 </td>
  <td>
  <input type ="text" id = "txtAddress" name = "Address"/>
  </td>
  <td>
  <label id = "lblCity"> City: </label>
  </td>
  <td>
  <input type ="text" id = "txtCity"  name = "City"/>
  </td>
  
  </tr>
  <tr>
  <td>
  State:
  </td>
  <td>
  <input type ="text" id = "txtState" name = "State" />
  </td>
  <td>
   Zip:
  </td>
  <td>
  <input type ="text" id = "txtZipcode" name = "Zipcode" />
  </td> 
  </tr>
  <tr>
  <td>
  <label id = "lblCountry"> Country: </label>
  </td>
  <td>
  <input type ="text" id = "txtCountry" name = "Country" />
  
  </td>
  <td>
  <label id = "lblPhone"> Phone: </label>
  </td>
  <td>
  <input type ="text" id = "txtPhone" name = "Phone" />
  </td>
  </tr>
  <tr>
   <td>
  Fax:
  </td>
  <td>
  <input type ="text" id = "txtFax" name = "Fax"/>
  </td>
  <td>
   Email:
  <label style="color: black">*</label>
  </td>
  <td>
  <input type ="text" id = "txtEmail" name = "Email" />
  </td>
  </tr>
  </table>
  
   I am currently a part of:&nbsp;
  <select name = "PartOf">
  <option  value="Select">Select</option>
  <option value="School">School</option>
  <option value="University">University</option>
  <option value="Tutor/Mentor">Tutor/Mentor</option>
  <option value="Business">Business</option>
</select>
<br/>
<br/>
 I wish to register for: &nbsp;&nbsp; &nbsp;&nbsp;<select name="Conference_list">
<option value = "0">Select</option>
<%
ConferenceDataAccess confdata = new ConferenceDataAccess();
Conference conf = new Conference();
List <Conference>l1 = new ArrayList<Conference>();
l1 = confdata.getConferences();
Iterator<Conference> i = l1.iterator();

while(i.hasNext())
{
	conf = i.next();
	String nameOfConference = conf.getConfName();
	int confId = conf.getConfId();
%>
<option value="<%=confId%>"><%=nameOfConference%> </option>
<% } %>
</select>

  <h4> Lunch Options</h4> 
  <input type="checkbox" name="lunchOption" value="veggie"></input>Check this option to request for a vegetarian lunch 
  <h4>Attendee List</h4>
  <p id = "instruction2"> <em>We maintain an online list of people attending our conference.
   This list is intended to help attendees connect with other attendees.</em></p> 
   <input type="checkbox" name="attendeeList" value="yes"></input>Yes,add me to the online list of attendees
   <br/><br/>
   What days will you be attending the Conference?<label style="color: black">*</label>
   <br/><br/>
   <input type="radio" name="confDays" value="Both"/>Both Days <input type="radio" name="confDays" value="One"/> Only One Day 
   <h4> If attending only for a day please indicate the date you will be present</h4>
  Attend On: <input type ="text" id = "popupDatepicker2" name = "date" ></input>
  <h5>Please review the details before you submit the form.</h5>
   <input type ="submit" id = "btnSubmit" value = "Submit" onclick="return ValidateForm(this.form)"/>
   <input type="reset" id = "btnReset" value = "Reset"/> 
</form>
  </div>
 </div>
 </div>

 <div id = "footer">
 </div>


</body>
</html>